﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Digitalmes.Attributes
{
    public class OrderAttribute : Attribute
    {

        public int Order { get; }
        public OrderAttribute(int order)
        {
            if (order < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(order), "Order must be a non-negative integer.");
            }
            Order = order;
        }
    }
}
